package api.interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by Administrator on 2018-01-12.
 */

public class HttpHeadInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request()
                .newBuilder()
                .addHeader("mac", "f8:00:ea:10:45")
                .addHeader("uuid", "gdeflatfgfg5454545e")
                .addHeader("userId", "Fea2405144")
                .addHeader("netWork", "wifi")
                .build();
        return chain.proceed(request);
    }
}